import request from '@/utils/request'

export function getAllInfo(query) {
  return request({
    url: '/store/online',
    method: 'get',
    params: query
  })
}

export function getInfo(query) {
  return request({
    url: '/store/factory/search',
    method: 'get',
    params: query
  })
}

/**
 * 自定义入库
 */
export function customStoreIn(data) {
  return request({
    url: '/store/customStoreIn',
    method: 'post',
    data
  })
}

/**
 * excel导入
 */
export function excelImport(data) {
  return request({
    url: `/store/excelImport`,
    method: 'put',
    data
  })
}
